﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CSC.FSVTracker.Domain.Entities;

namespace CSC.FSVTracker.WebUI.Models
{
    public class NavViewModel
    {
        /// <summary>
        /// Gets or sets the home.
        /// </summary>
        /// <value>
        /// The home.
        /// </value>
        public MvcHtmlString Home { get; set; }

        /// <summary>
        /// Gets or sets the admin.
        /// </summary>
        /// <value>
        /// The admin.
        /// </value>
        public MainMenu Admin { get; set; }

        /// <summary>
        /// Gets or sets the change password.
        /// </summary>
        /// <value>
        /// The change password.
        /// </value>
        public MvcHtmlString ChangePassword { get; set; }

        /// <summary>
        /// Gets or sets the tracker.
        /// </summary>
        /// <value>
        /// The tracker.
        /// </value>
        public MainMenu Tracker { get; set; }

        /// <summary>
        /// Gets or sets the download.
        /// </summary>
        /// <value>
        /// The download.
        /// </value>
        public MainMenu Download { get; set; }

        /// <summary>
        /// Gets or sets the name of the user.
        /// </summary>
        /// <value>
        /// The name of the user.
        /// </value>
        public string UserName
        {
            get 
            {
                return ((User)HttpContext.Current.Session["User"]) == null ? string.Empty : ((User)HttpContext.Current.Session["User"]).Name;
            }
        }
    }
}